
 /**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */
package com.sys.midware.redis.config;


 /**
 * <b>Description：</b> redis连接池配置 <br/>
 * <b>ClassName：</b> RedisPoolConfig <br/>
 * <b>@author：</b> jackyshang <br/>
 * <b>@date：</b> 2016年8月22日 上午9:59:14 <br/>
 * <b>@version: </b>  <br/>
 */
public class RedisPoolConfig {
    /**
     * 最大连接数
     */
    private int maxTotal;
    /**
     * 最大分配的对象数
     */
    private int maxActive;
    /**
     * 最大能够保持idel状态的对象数
     */
    private int maxIdle;

    private int maxWait;

    private int minIdle;

    private boolean testOnBorrow;

    private boolean testOnReturn;

    private int minEvictableIdleTimeMillis;

    /**
     * maxTotal
     *
     * @return  the maxTotal
     */
    
    public int getMaxTotal() {
        return maxTotal;
    }

    /**
     * @param maxTotal the maxTotal to set
     */
    public void setMaxTotal(int maxTotal) {
        this.maxTotal = maxTotal;
    }

    /**
     * maxActive
     *
     * @return  the maxActive
     */
    
    public int getMaxActive() {
        return maxActive;
    }

    /**
     * @param maxActive the maxActive to set
     */
    public void setMaxActive(int maxActive) {
        this.maxActive = maxActive;
    }

    /**
     * maxIdle
     *
     * @return  the maxIdle
     */
    
    public int getMaxIdle() {
        return maxIdle;
    }

    /**
     * @param maxIdle the maxIdle to set
     */
    public void setMaxIdle(int maxIdle) {
        this.maxIdle = maxIdle;
    }

    /**
     * maxWait
     *
     * @return  the maxWait
     */
    
    public int getMaxWait() {
        return maxWait;
    }

    /**
     * @param maxWait the maxWait to set
     */
    public void setMaxWait(int maxWait) {
        this.maxWait = maxWait;
    }

    /**
     * minIdle
     *
     * @return  the minIdle
     */
    
    public int getMinIdle() {
        return minIdle;
    }

    /**
     * @param minIdle the minIdle to set
     */
    public void setMinIdle(int minIdle) {
        this.minIdle = minIdle;
    }

    /**
     * testOnBorrow
     *
     * @return  the testOnBorrow
     */
    
    public boolean isTestOnBorrow() {
        return testOnBorrow;
    }

    /**
     * @param testOnBorrow the testOnBorrow to set
     */
    public void setTestOnBorrow(boolean testOnBorrow) {
        this.testOnBorrow = testOnBorrow;
    }

    /**
     * testOnReturn
     *
     * @return  the testOnReturn
     */
    
    public boolean isTestOnReturn() {
        return testOnReturn;
    }

    /**
     * @param testOnReturn the testOnReturn to set
     */
    public void setTestOnReturn(boolean testOnReturn) {
        this.testOnReturn = testOnReturn;
    }

    /**
     * minEvictableIdleTimeMillis
     *
     * @return  the minEvictableIdleTimeMillis
     */
    
    public int getMinEvictableIdleTimeMillis() {
        return minEvictableIdleTimeMillis;
    }

    /**
     * @param minEvictableIdleTimeMillis the minEvictableIdleTimeMillis to set
     */
    public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) {
        this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
    }
    
    
    
}
